package org.uni_hi.lsep.gui.test.sim;

import java.awt.Image;
import java.util.Hashtable;

public class AnimatedIconContainer extends IconContainer {

	private Hashtable<String, Image> _hTable=null;
	
	public AnimatedIconContainer(String path, String title, String ipAddress) {
		super(path, title, ipAddress);
		_hTable=new Hashtable<String, Image>(10);
		_hTable.put("aic.default",getBGImage());
	}
	
	public void setImageBib(String key,String path){
		_hTable.put(key, createImageIcon(path).getImage());
	}

	public void activateImage(String key){
		if(key==null||key.equals(""))key="aic.default";
		Image i=_hTable.get(key);
		if(i!=null){
			setBGImage(i);
		}
	}
}
